package com.example.yiqiuser.dao;



import com.example.yiqiuser.entity.PtFavorite;

import java.util.List;

/**
 * @ fileName:PtFavoriteDao
 * @ description:
 * @ author:chen
 * @ createTime:2023/3/31 14:45
 * @ version:1.0.0
 */
public interface PtFavoriteDao {
    /**
     * 分页查询
     * @param ptFavorite
     * @return
     */
    List<PtFavorite> queryByParam(PtFavorite ptFavorite);

    /**
     * 添加
     * @param about
     * @return
     */
    int add(PtFavorite about);

    /**
     * 更新
     * @param about
     * @return
     */
    int  update(PtFavorite about);

    /**
     * 跟据Id删除
     * @param id
     * @return
     */
    int deleteById(Integer id);
    /**
     * 跟据objid删除
     * @param objid
     * @return
     */
    int deleteByObjid(String objid);

}
